package com.zut.blocks.web.controller;

import com.zut.blocks.service.course.CourseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
@RestController()
public class CourseDeleteController {
    @Resource
    CourseService courseService;
    @Autowired
    CourseService us;

    @PostMapping(value = "/deleteCourse")
    public void deleteCourse(
            @RequestParam("courseID") int courseID){

        us.delete(courseID);
    }

}
